package freespiritsocial.io.user.ui.adapter.search

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import freespiritsocial.io.user.R
import freespiritsocial.io.user.data.model.bean.Place
import freespiritsocial.io.user.databinding.ItemForYouPlaceBinding
import java.util.*

/**
 * for you Place 页面
 */
class ForYouPlaceAdapter(
    data: ArrayList<Place> = arrayListOf(),
    layoutResIdRes: Int = R.layout.item_for_you_place
):
    BaseQuickAdapter<Place,BaseDataBindingHolder<ItemForYouPlaceBinding>>(layoutResIdRes,data) {

    override fun convert(holder: BaseDataBindingHolder<ItemForYouPlaceBinding>,item: Place) = with(holder.dataBinding) {
        this?.place = item
    }
}